package org.hepeng.hope.dao

import org.hepeng.hope.CornerstoneApplicationTests
import org.hepeng.hope.entity.Role
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ActiveProfiles

@ActiveProfiles(profiles = ["dev"])
internal class RoleDAOTest : CornerstoneApplicationTests() {

    @Autowired lateinit var dao: RoleDAO

    @Test fun insertTest() {
        val r = Role("开发者" , "devloper" , "开发者角色").apply {
            createTime = System.currentTimeMillis()
            deleteFlag = false
        }
        val saved = dao.save(r)
    }


}